/* JavaLog - package tracker 
 * 
 * Copyright (C) 2009  Allyson Lima, Diego Pedro, Victor Freire
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software 
 * Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with this 
 * program.  If not, see <http://www.gnu.org/licenses/>.
 */
package br.edu.ufcg.ccc.javalog.controller;

import br.edu.ufcg.ccc.javalog.model.Package;
import br.edu.ufcg.ccc.javalog.model.Validator;

/**
 * Controller for Package model object.
 * @author Allyson Lima, Diego Pedro, Victor Freire
 * @version 03/12/09
 */
public class PackageController {
//	private Package pkg;
	
	/**
	 * Constructs a controller for a pkg model object. 
	 * @param f pkg model object to manipulate
	 */
	public PackageController(Package f) {
		Validator.validateObject(f, new IllegalArgumentException("null pkg received"));
//		this.pkg = f;
	}
		
//	/**
//	 * Handles unpredicted errors, mostly from bad code.
//	 * @param e the exception caught
//	 * @throws PackageControllerException the processed error for the View
//	 */
//	private void handleUnknownError(Exception e) throws PackageControllerException {
//		// TODO log unexpected errors
//		throw new PackageControllerException(e.getMessage() != null ? e.getMessage() : "Não há informações adicionais sobre esse erro.");
//	}
}
